    <div class="line">
        <!-- single choose start-->
	    <script type="text/javascript" src="{{ static_url('js/jquery-1.10.1.min.js') }}" language="JavaScript"></script>
	    <script type="text/javascript">
		 $(function() {
			 $(".r1").click(function(){
				$("#d1").hide();
				$("#d2").show();
			 });
			 $(".r2").click(function(){
				$("#d2").hide();
				$("#d1").show();
			 });
		  });
	    </script>
        <!-- single choose end-->
		<script src="{{ static_url('js/SpryTabbedPanels.js') }}" type="text/javascript"></script>
		<link href="{{ static_url('css/SpryTabbedPanels.css') }}" rel="stylesheet" type="text/css"/>
		<div id="TabbedPanels1" class="TabbedPanels">
		<ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0">当前项目信息</li>
                <li class="TabbedPanelsTab" tabindex="0">全局配置</li>
                <li class="TabbedPanelsTab" tabindex="0">配置文件参数替换(未开通)</li>
                <li class="TabbedPanelsTab" tabindex="0">版本控制配置</li>
                <li class="TabbedPanelsTab" tabindex="0">编译配置(未开通)</li>
                <li class="TabbedPanelsTab" tabindex="0">解锁</li>
                <li class="TabbedPanelsTab" tabindex="0">备用1</li>
                <li class="TabbedPanelsTab" tabindex="0">备用2</li>
                </ul>
                <div class="TabbedPanelsContentGroup">
                        <!-- info start -->
                        <div class="TabbedPanelsContent">
                           <p>当前项目为：{{escape(projectn)}}</p>
                           <p>备注：{{escape(project_info.remark)}}</p>
                        </div>
                        <!--info end-->
                        <!--make globle set start-->
                        <div class="TabbedPanelsContent">
                            <div>
                              <form action="http://{{domain}}/index/project_set/projectdefault/"  method="get" enctype="multipart/form-data" name="form1" id="form1">
                                <p>部署完代码，默认服务是否要重启</p>
                                <p>
                                  <label for="textfield"></label>
                                  <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                  {% if project_info.default_reboot == 1 %}
                                      <label>
                                          <input type="radio" name="bootGroup1" value="1" id="bootGroup1_0" checked />
                                          默认重启</label>
                                      <label>
                                      <input type="radio" name="bootGroup1" value="0" id="bootGroup1_1" />
                                          默认不重启</label>
                                 {% else %}
                                      <label>
                                          <input type="radio" name="bootGroup1" value="1" id="bootGroup1_0" />
                                          默认重启</label>
                                      <label>
                                      <input type="radio" name="bootGroup1" value="0" id="bootGroup1_1" checked />
                                          默认不重启</label>
                                 {% end %}
                                </p>
                                <p>部署是否使用多线程。等待时间为两次部署间隔的时间，多线程时此参数无效。</p>
                                <!--<p>如使用多线程等待时间参数无效。如使用单线程，线程数参数无效</p>-->
                                <p>
                                  {% if project_info.thread == 0 %}
                                  <table width="50%" border="0">
                                      <tr>
                                      <td>
                                      <label>
                                          <input type="radio" name="bootGroup2" value="1" id="bootGroup2_0" class="r1"/>
                                          多线程</label>  
                                      <label>
                                          <input type="radio" name="bootGroup2" value="0" id="bootGroup2_1" class="r2" checked/>
                                          单线程</label>
                                      </td>
                                      <td>
                                      <div id="d1">
                                        <label>等待时间（秒）
                                        <input name="wait_time" type="text" value="{{escape(str(project_info.wait_time))}}" maxlength="3" size="3"/>
                                        </label>
                                      </div>
                                      <div id="d2" style="display: none;">
                                        <label> 线程数
                                        <input name="thread_num" type="text" value="{{escape(str(project_info.thread_num))}}" maxlength="2" size="2"/>
                                        </label>
                                       </div> 
                                     </td>
                                      </tr>
                                   </table>  
                                  {% else %}
                                  <table width="100%" border="0">
                                      <tr>
                                      <td>
                                      <label>
                                          <input type="radio" name="bootGroup2" value="1" id="bootGroup2_0" class="r1" checked/>
                                          多线程</label>  
                                      <label>
                                      <input type="radio" name="bootGroup2" value="0" id="bootGroup2_1" class="r2" />
                                          单线程</label>
                                      </td>
                                      <td>
                                      <div id="d1" style="display: none;">
                                        <label>等待时间（秒）
                                        <input name="wait_time" type="text" value="{{escape(str(project_info.wait_time))}}" maxlength="3" size="3"/>
                                        </label>
                                      </div>
                                      <div id="d2">
                                        <label> 线程数
                                        <input name="thread_num" type="text" value="{{escape(str(project_info.thread_num))}}" maxlength="2" size="2"/>
                                        </label>
                                       </div> 
                                     </td>
                                      </tr>
                                   </table>  
                                  {% end %}
                                 </p>                 
                                <input type="submit" name="submit" id="button" value="重新设置" />
                              </form>  
                            </div>
                            <hr/>
                            <!-- line end --> 
                            <div>
                                <table width="100%" border="0"> 
                                   <tr>
                                     <td style="border-right:solid 1px #add9c0;" width="60%">
                                         <form action="http://{{domain}}/index/project_set/uploadconfile/"  method="post" enctype="multipart/form-data" name="form12" id="form12">
                                           <p>上传配置(建议用UE或EditPlus保存为UTF-8编码)</p>
                                           <p><a href="http://{{domain}}/static/example/service.zip" target="_new">配置文件模板</a></p>
                                           <p>配置文件
                                           <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                           <label for="fileField"></label>
                                           <input type="file" name="confile" id="fileField" />
                                           <input type="submit" name="submit" id="button" value="提交" />
                                           </p>
                                         </form>  
                                     </td>
                                     <td style="border-left:solid 1px black;">
                                         <form action="http://{{domain}}/index/project_set/downconfile/"  method="get" enctype="multipart/form-data" name="form13" id="form13">
                                           <p>下载该项目中服务的配置</p>
                                           <p>下载
                                           <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                           <input type="submit" name="submit" id="button" value="下载" />
                                           </p>
                                         </form> 
                                     </td>
                                   </tr>
                                </table>
                            </div>
                            <hr/>
                            <!-- line end --> 
                            <div calss="line">
                              <form action="http://{{domain}}/index/project_set/delservice/"  method="get" enctype="multipart/form-data" name="form13" id="form13">
                                <p>当前服务列表。提交要删除的服务。
                                <input type="submit" name="submit" id="button" value="删除" />
                                </p>
                                <p>
                                    {% for sl in server_list %}
                                        <label>
                                        <input type="checkbox" name="cg13" value="{{escape(str(sl.id))}}" id="RadioGroup1_{{escape(str(sl.id))}}" />
                                        {{escape(sl.servername)}}  服务地址：{{escape(sl.ip)}}</label>
                                        <br />
                                    {% end %}
                                 </p>
                              </form>
                            </div>
                            <!-- line end --> 
                        </div>
                        <!--make globle set end-->
                        <!-- edit config file start -->
                        <div class="TabbedPanelsContent">
                           <p>暂未开通</p>
                        </div>
                        <!--edit config file end-->
                        <!--make version set start-->
                        <div class="TabbedPanelsContent">
                             <div id='line'>
                                <form action="http://{{domain}}/index/project_set/editsvn/" name="editsvn" method="get" enctype="multipart/form-data" id="editsvn">
                                  <p>
                                    <label>SVN配置(浏览配置时密码框为空)</label>
                                  </p>
                                  <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                  <p><label>用户名</label>
                                    {% if project_info.svn_username == None %}
                                        <input type="text" name="svntextfield1" id="svntextfield1" size="10" />
                                    {% else %}
                                        <input type="text" name="svntextfield1" id="svntextfield1" size="10"  value="{{escape(project_info.svn_username)}}"> 
                                    {% end %}
                                  密码
                                  <label for="svntextfield2"></label>
                                  <input type="password" name="svntextfield2" id="svntextfield2" size="10">
                                  URL地址
                                   {% if project_info.svn_url == None %}
                                        <input type="text" name="svntextfield3" id="svntextfield3" size="48"/>
                                   {% else %}
                                        <input type="text" name="svntextfield3" id="svntextfield3" size="48" value="{{escape(project_info.svn_url)}}">
                                   {% end %}
                                    <input type="submit" name="button" id="button" value="提交">
                                  </p>
                                </form>
                              <!-- div line-->
                              </div>
 <div id='line'>
                                <form action="http://{{domain}}/index/project_set/editgit/" name="editgit" method="get" enctype="multipart/form-data" id="editgit">
                                  <p>
                                    <label>GIT配置(浏览配置时密码框为空。GIT部分也使用SVN客户端获取，所以URL最后不要加.git)</label>
                                  </p>
                                  <input type="hidden" name="p" value="{{escape(projectn)}}" /> 
                                  <p>
                                    <label>用户名</label>
                                    {% if project_info.git_username == None %}
                                        <input type="text" name="gittextfield4" id="gittextfield1" size="10">
                                    {% else %}
                                        <input type="text" name="gittextfield4" id="gittextfield1" size="10"  value="{{escape(project_info.git_username)}}">
                                    {% end %}
                                    密码
                                    <label for="gittextfield2"></label>
                                    <input type="password" name="gittextfield5" id="gittextfield2" size="10">
                                    URL地址
                                    {% if project_info.git_url == None %}
                                        <input type="text" name="gittextfield6" id="gittextfield3" size="48">
                                    {% else %}
                                        <input type="text" name="gittextfield6" id="gittextfield3" size="48" value="{{escape(project_info.git_url)}}">
                                    {% end %}
                                    <input type="submit" name="button2" id="button2" value="提交">
                                  </p>
                                </form>
                              <!-- div line-->
                              </div>
                              <hr/>
                              <!-- default version managent start -->
                              <form action="http://{{domain}}/index/project_set/vermandefault/"  method="get" enctype="multipart/form-data" name="form1" id="form1">
                              <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                  {% if project_info.default_version_management == 0 %}
                                  <table width="50%" border="0">
                                      <tr>
                                      <td>
                                      <label>
                                          <input type="radio" name="VersionManageGroup2" value="0" id="VersionManageGroup2_0" class="vr1" checked />
                                          SVN</label>  
                                      <label>
                                          <input type="radio" name="VersionManageGroup2" value="1" id="VersionManageGroup2_1" class="vr2" />
                                          GIT</label>
                                      </td>
                                      </tr>
                                   </table>  
                                   <input type="submit" name="submit" id="button" value="重新设置" />
                                  {% else %}
                                  <table width="100%" border="0">
                                      <tr>
                                      <td>
                                      <label>
                                          <input type="radio" name="VersionManageGroup2" value="0" id="VersionManageGroup2_0" class="vr1" />
                                          SVN</label>  
                                      <label>
                                          <input type="radio" name="VersionManageGroup2" value="1" id="VersionManageGroup2_1" class="vr2" checked/>
                                          GIT</label>
                                      </td> 
                                      </tr>
                                   </table>  
                                   <input type="submit" name="submit" id="button" value="重新设置" />
                                  {% end %} 
                              </form>   
                              <!-- default version managent end --> 
                              <hr/>
                              <!-- 测试版本配置 -->
                              <form action="http://{{domain}}/index/project_set/testvercon/" name="editsvn" method="get" enctype="multipart/form-data" id="editsvn">
                                <label>请仔细检查测试结果，确认SVN或GIT已经安装，并且系统可以调用。配置地址可以被访问，配置信息正确。</label> 
                              	<input type="hidden" name="p" value="{{escape(projectn)}}" />
                                <input type="submit" name="submit" id="button" value="测试版本配置" />
                              </form>                                              
                        </div>
                        <!--make version set end-->
                        <!--svn build set start-->
                        <div class="TabbedPanelsContent">
                              <p>自动编译未开发</p>                       
                         </div>
                        <!--svn  version set end-->
                        <!--unlock set start-->
                        <div class="TabbedPanelsContent">
                            <div id='line'>
                                <form action="http://{{domain}}/index/project_set/unlock/" name="unlock1" method="get" enctype="multipart/form-data" id="unlock1">
                                  <p>
                                    <label>上传锁</label>
                                  </p>
                                  <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                  <input type="hidden" name="locktype" value="1" />
                                   {% if project_info.upload_lock == 0 %}
                                   		<input type="hidden" name="unlock" value="0" />
                                        未被锁
                                        <input type="submit" name="button" id="button" value="解锁" disabled="disabled" />
                                   {% else %}
                                   		<input type="hidden" name="unlock" value="1" />
                                        <strong>被锁</strong>
                                        <input type="submit" name="button" id="button" value="解锁" />
                                   {% end %}
                                  </p>
                                </form>
                              <!-- div line-->
                            </div>
                            <div id='line'>
                                <form action="http://{{domain}}/index/project_set/unlock/" name="unlock2" method="get" enctype="multipart/form-data" id="unlock2">
                                  <p>
                                    <label>部署锁</label>
                                  </p>
                                  <input type="hidden" name="p" value="{{escape(projectn)}}" />
                                  <input type="hidden" name="locktype" value="2" />
                                   {% if project_info.deploy_lock == 0 %}
                                   		<input type="hidden" name="unlock" value="0" />
                                        未被锁
                                        <input type="submit" name="button" id="button" value="解锁" disabled="disabled" />
                                   {% else %}
                                   		<input type="hidden" name="unlock" value="1" />
                                        <strong>被锁</strong>
                                        <input type="submit" name="button" id="button" value="解锁" />
                                   {% end %}
                                  </p>
                                </form>
                            <!-- div line -->
                            </div>
                        </div>
                        <!--unlock set end-->
                        <!--bei start-->
                        <div class="TabbedPanelsContent">
                           <p>备用1</p>
                        </div>
                        <!--bei end-->
                        <!--bei2 start -->
                        <div class="TabbedPanelsContent">
                           <p>备用2</p>
                        </div>
                        <!--bet2 end-->
                 </div>
		</div>
		<script type="text/javascript">
		var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
		</script>
    </div>
    <!-- lien end -->
